{% extends 'home/pub/base.html' %}

{% block zidingyi %}
<!--这里有个坑必须留意以下,我的路由member/addedit  /static前面不能加.-->
<link rel="stylesheet" type="text/css" href="/static/home/public/css/member.css">
<link rel="stylesheet" type="text/css" href="/static/home/public/css/member-app.css">

{% endblock %}


{% block content %}

<div class="mainbody order">
    <div class="container">
        <!-- 面包屑导航 -->
        <div class="crumbs ">
            <ol class="breadcrumb">
                <li class="hidden-xs hidden-sm"><a href="index.html">首页</a></li>
                <li class="active"><a href="/member">我的商城</a></li>
            </ol>
        </div>
        <!-- 面包屑导航 E-->
        <div class="main clearfix">
				<!-- 左侧导航 -->
				<div class="left-nav f-fl hidden-xs hidden-sm">
					<div class="nav-main">
						<a href="javascript:;" class="type-title"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>订单中心</a>
						<a href="/myorder" class="ml">我的订单</a>
						<a href="#" class="ml ">我的回购单</a>
						<a href="#" class="ml ">我的意外保</a>
						<a href="javascript:;" class="type-title"><span class="glyphicon glyphicon-user" aria-hidden="true"></span>个人中心</a>
						<a href="/member/addlist" class="ml ">地址管理</a>
						<a href="#" class="ml ">我的收藏</a>
						<a href="#" class="ml ">消息提醒</a>
						<a href="#" class="ml ">建议反馈</a>
					</div>
				</div><!-- 左侧导航 E-->
				<!-- 右侧内容展示 -->
                <h3>地址管理</h3><br> <h3><a href="/member/addadd">添加地址</a></h3>
				<div class="right-content f-fr col-xs-12 col-sm-12">
					<div class="index-main">


                    <div class="am-u-sm-12">
                      <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                        <thead>
                          <tr>
                            <td><img src="" class="tpl-table-line-img" alt=""></td>
                            <th>用户id</th>
                            <th>收货人</th>
                            <th>收货地址</th>
                            <th>手机号码</th>
                            <th>默认地址</th>
                            </tr>
                        </thead>
                        <tbody>

                    {% for i in addall %}
                        <tr class="gradeX">
                        <td><img src="" class="tpl-table-line-img" alt=""></td>
                        <td class="am-text-middle">{{ i.uid.id }}</td>
                        <td class="am-text-middle">{{ i.addname }}</td>
                        <td class="am-text-middle">{{ i.adds }}</td>
                        <td class="am-text-middle">{{ i.addphone}}</td>
                        <td class="am-text-middle">{{ i.status }}</td>

                        <!--状态修改的td-->
                        <td class="am-text-middle">
                          <div class="tpl-table-black-operation">
                            <a href="{% url 'addedit' i.id %}">
                              <i class="am-icon-pencil"></i>编辑</a>
                            <a href="{% url 'adddel' i.id %}" class="tpl-table-black-operation-del">
                              <i class="am-icon-trash"></i>删除</a>
                          </div>
                        </td>
                      </tr>
                    {% endfor %}


                        </tbody>
                      </table>
                    </div>

					</div>


				</div>
			</div>
    </div>
</div>

{% endblock %}